/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.employee.controller;

import com.employee.model.FaqFacade;
import com.employee.model.FaqFacadeLocal;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author VANANH
 */
@Stateless
public class FAQBean implements FAQBeanRemote
{
    @EJB
    private FaqFacadeLocal faqFacade;

    @Override
    public List<String> getAllFAQ()
    {
        System.out.println("------------------------------------------");
        List<String> jsonList = new ArrayList<>();
        jsonList = faqFacade.getAllFAQ();
        return jsonList;
    }

    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
}
